<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:pcc="http://java.sun.com/jsf/composite/pcc"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:icecore="http://www.icefaces.org/icefaces/core"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:fmt="http://java.sun.com/jsp/jstl/fmt">
    
    <script type="text/javascript">
		function beforeCloseNodoForm(){
			var jqWrapper=jQuery('[id$="nodoFormWrapper"]');
			jQuery('[id$="autoCmpNodo"]',jqWrapper).val(" ");			
		}
	</script>

<!-- 	<ice:form id="tipoNodoForm" partialSubmit="false"> -->
	<ice:panelPopup draggable="true" visible="#{fcConfigurarPlantilla.visiblePlantillaNodoForm}" rendered="${fcConfigurarPlantilla.visiblePlantillaNodoForm}" style="z-index: 1000; position: fixed !important;" styleClass="ui-dialog ui-draggable">
		<f:facet name="header">
		    <ice:panelGroup styleClass="ui-dialog-titlebar">
		        <ice:outputText styleClass="ui-dialog-title" value="${messages['titulo.addPlantillaNodo']}"/>
		        <ice:commandLink styleClass="ui-dialog-titlebar-close" value="${serviquality['app.closePopup']}" action="#{fcConfigurarPlantilla.closePopupPlantillaNodoForm}" onclick="beforeCloseNodoForm();"/>
		    </ice:panelGroup>
		</f:facet>
               
		<f:facet name="body">	
			<ice:panelGrid styleClass="ui-dialog-content formulario" id="nodoFormWrapper">			 
				<ice:outputText styleClass="ui-dialog-title" value="${serviquality['plantillaNodo.plantillaNodoPK.plantilla']}" />
   				<ice:inputText value="${fcConfigurarPlantilla.plantillaNodoMaestro.plantillaNodoPK.plantilla.nombre}" disabled="true"/>    					   				  				
		    	
		    	<ice:outputText styleClass="ui-dialog-title" value="${serviquality['plantillaNodo.parent']}"/>
				<ice:inputText value="${fcConfigurarPlantilla.plantillaNodoMaestro.parent.plantillaNodoPK.nodo.nombre}" disabled="true"/>							
					
				<ice:outputText styleClass="ui-dialog-title" value="${serviquality['plantillaNodo.plantillaNodoPK.nodo']}"/>
				<ice:selectInputText id="autoCmpNodo"
					rows="${serviquality['app.sizeAutoComplete']}"
					width="300"
					value="#{fcConfigurarPlantilla.plantillaNodoMaestro.plantillaNodoPK.nodo.nombre}"
					valueChangeListener="#{fcConfigurarPlantilla.selectNodoValueChanged}"
					listVar="nodoAutoC"
					listValue="#{fcConfigurarPlantilla.nodosAutocomplete}"
					required="true"
					partialSubmit="false">						
   					<f:facet name="selectInputText">
       					<ice:panelGrid columns="3" styleClass="nmColumn3"
						columnClasses="column1,column2,column3">
							<ice:outputText id="AutoCmpNNombre" value="#{nodoAutoC.nombre}"/>
			            	<ice:outputText id="AutoCmpNtipo" value="#{nodoAutoC.nodoPK.tipoNodo.nombre}"/>
			              	<ice:outputText id="AutoCmpNCodigo" value="#{nodoAutoC.nodoPK.codigo}"/>
						</ice:panelGrid>
     				</f:facet>			
		        </ice:selectInputText>
		        <ice:message for="autoCmpNodo" />
		        <ice:panelGroup styleClass="formulario">
					<br/>		    				    		
           			<ice:commandButton id="eliminarNodo" value="${serviquality['button.eliminar']}" action="#{fcConfigurarPlantilla.eliminarPlantillaNodo}" partialSubmit="false" style="margin-right: 5px"/>
           			<ice:commandButton id="grabarNodo" value="${serviquality['button.grabar']}" action="#{fcConfigurarPlantilla.grabarPlantillaNodo}" partialSubmit="false" style="margin-right: 5px"/>
				</ice:panelGroup>		       		   	                                                       																	           
		    </ice:panelGrid>			               	      			    		 	     		  
		</f:facet>       
	</ice:panelPopup>	
<!-- 	</ice:form>	 -->
</ui:composition>